package top.zywork.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.zywork.dao.AdvertisementTypeDAO;
import top.zywork.dos.AdvertisementTypeDO;
import top.zywork.dto.AdvertisementTypeDTO;
import top.zywork.service.AbstractBaseService;
import top.zywork.service.AdvertisementTypeService;

import javax.annotation.PostConstruct;

/**
 * AdvertisementTypeServiceImpl服务接口实现类<br/>
 *
 * 创建于2019-07-05<br/>
 *
 * @author http://zywork.top 王振宇
 * @version 1.0
 */
@Service(value = "advertisementTypeService")
public class AdvertisementTypeServiceImpl extends AbstractBaseService implements AdvertisementTypeService {

    private AdvertisementTypeDAO advertisementTypeDAO;

    @Autowired
    public void setAdvertisementTypeDAO(AdvertisementTypeDAO advertisementTypeDAO) {
        super.setBaseDAO(advertisementTypeDAO);
        this.advertisementTypeDAO = advertisementTypeDAO;
    }

    @PostConstruct
    public void init() {
        super.init(AdvertisementTypeDO.class, AdvertisementTypeDTO.class);
    }
}
